/*  1:   */ package org.intellij.lang.regexp;
/*  2:   */ 
/*  3:   */

import com.intellij.lang.ASTNode;
import com.intellij.openapi.util.Condition;
import com.intellij.psi.PsiElement;
import org.intellij.lang.regexp.psi.RegExpChar;
import org.jetbrains.annotations.NotNull;

/*  4:   */
/*  5:   */
/*  6:   */
/*  7:   */
/*  8:   */ 
/*  9:   */ public class RegExpWordSelectionFilter
/* 10:   */   implements Condition<PsiElement>
/* 11:   */ {
/* 12:   */   public boolean value(@NotNull PsiElement paramPsiElement)
/* 13:   */   {
/* 14:30 */     if (paramPsiElement == null) {
/* 15:30 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "0", "org/intellij/lang/regexp/RegExpWordSelectionFilter", "value" }));
/* 16:   */     }
/* 17:30 */     ASTNode localASTNode = paramPsiElement.getNode();
/* 18:31 */     if (((localASTNode != null) && (localASTNode.getElementType() == RegExpTT.CHARACTER)) || ((paramPsiElement instanceof RegExpChar))) {
/* 19:32 */       return false;
/* 20:   */     }
/* 21:34 */     return true;
/* 22:   */   }
/* 23:   */ }



/* Location:           E:\idea\

 * Qualified Name:     org.intellij.lang.regexp.RegExpWordSelectionFilter

 * JD-Core Version:    0.7.0.1

 */